<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>Proc::Daemon - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of Proc-Daemon - MetaCPAN" href="https://metacpan.org/dist/Proc-Daemon/releases.rss" />
        <link rel="canonical" href="./Proc::Daemon.html" />
        <meta name="description" content="Run Perl program(s) as a daemon process" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/Proc::Daemon" />
<meta name="twitter:title"       content="Proc::Daemon" />
<meta name="twitter:description" content="" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="./Proc::Daemon.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of Proc-Daemon was released.">
      <span class="relatize">01 Jan 2016 18:51:05 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/Proc-Daemon">Proc-Daemon</a>
  </li>
  <li>
    Module version: 0.23
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/Proc-Daemon/source/lib/Proc/Daemon.pm">Source</a>
    (<a href="https://metacpan.org/dist/Proc-Daemon/source/lib/Proc/Daemon.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g p" href="https://metacpan.org/dist/Proc-Daemon/source/lib/Proc/Daemon.pod">Pod Source</a>
    (<a href="https://metacpan.org/dist/Proc-Daemon/source/lib/Proc/Daemon.pod?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/Proc-Daemon/source/lib/Proc">Browse</a>
    (<a href="https://metacpan.org/dist/Proc-Daemon/source/lib/Proc?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/Proc-Daemon/changes">Changes</a>
    </li>
    <li>
      <a rel="noopener nofollow" class="nopopup" href="https://github.com/akreal/Proc-Daemon">Homepage</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/Proc-Daemon/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/akreal/Proc-Daemon">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://rt.cpan.org/Public/Dist/Display.html?Name=Proc-Daemon">Issues</a>
      (0)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=Proc-Daemon+0.23" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/P/Proc-Daemon.html?oncpan=1&amp;distmat=1&amp;version=0.23&amp;grade=2" style="color: #090">471</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/P/Proc-Daemon.html?oncpan=1&amp;distmat=1&amp;version=0.23&amp;grade=3" style="color: #900">14</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/P/Proc-Daemon.html?oncpan=1&amp;distmat=1&amp;version=0.23&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/AKREAL/Proc-Daemon-0.23">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on Proc-Daemon who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 0
      </div>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpancover.com/latest/Proc-Daemon-0.23/index.html">66.17% Coverage </a>
    </li>
    <li>
      License: perl_5
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/Proc-Daemon/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/A/AK/AKREAL/Proc-Daemon-0.23.tar.gz">
      Download (<span itemprop="fileSize">22.25KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FAKREAL%2FProc-Daemon-0.23%2Flib%2FProc%2FDaemon.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Proc-Daemon/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Proc-Daemon/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:Proc-Daemon">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="Proc-Daemon">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Proc/Daemon.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="AKREAL/Proc-Daemon-0.23"
>0.23
  (AKREAL on 2016-01-01)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.22"
>0.22
  (AKREAL on 2015-10-29)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.21"
>0.21
  (AKREAL on 2015-08-07)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.20"
>0.20
  (AKREAL on 2015-06-24)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.19"
>0.19
  (AKREAL on 2015-03-22)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.18"
>0.18
  (AKREAL on 2015-01-27)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.17"
>0.17
  (AKREAL on 2015-01-23)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.16"
>0.16
  (AKREAL on 2015-01-23)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.15"
>0.15
  (AKREAL on 2015-01-22)</option>
<option
  
  value="DETI/Proc-Daemon-0.14"
>0.14
  (DETI on 2011-06-03)</option>
<option
  
  value="DETI/Proc-Daemon-0.13"
>0.13
  (DETI on 2011-06-01)</option>
<option
  
  value="DETI/Proc-Daemon-0.12"
>0.12
  (DETI on 2011-05-24)</option>
<option
  
  value="DETI/Proc-Daemon-0.10"
>0.10
  (DETI on 2011-04-01)</option>
<option
  
  value="DETI/Proc-Daemon-0.09"
>0.09
  (DETI on 2011-03-15)</option>
<option
  
  value="DETI/Proc-Daemon-0.08"
>0.08
  (DETI on 2011-03-13)</option>
<option
  
  value="DETI/Proc-Daemon-0.07"
>0.07
  (DETI on 2011-02-17)</option>
<option
  
  value="DETI/Proc-Daemon-0.06"
>0.06
  (DETI on 2011-01-17)</option>
<option
  
  value="DETI/Proc-Daemon-0.05"
>0.05
  (DETI on 2010-10-28)</option>
<option
  
  value="DETI/Proc-Daemon-0.04"
>0.04
  (DETI on 2010-10-23)</option>
<option
  
  value="EHOOD/Proc-Daemon-0.03"
>0.03
  (EHOOD on 2003-06-19)</option>
<optgroup label="BackPAN">'
<option
  
  value="DETI/Proc-Daemon-0.11"
>0.11
  (DETI on 2011-05-23)</option>
<option
  
  value="EHOOD/Proc-Daemon-0.02"
>0.02
  (EHOOD on 1999-04-17)</option>
<option
  
  value="EHOOD/Proc-Daemon-0.01"
>0.01
  (EHOOD on 1998-01-27)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/AKREAL/Proc-Daemon-0.23/diff/' + encodeURIComponent(this.value) + '/lib/Proc/Daemon.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="AKREAL/Proc-Daemon-0.23"
>0.23
  (AKREAL on 2016-01-01)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.22"
>0.22
  (AKREAL on 2015-10-29)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.21"
>0.21
  (AKREAL on 2015-08-07)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.20"
>0.20
  (AKREAL on 2015-06-24)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.19"
>0.19
  (AKREAL on 2015-03-22)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.18"
>0.18
  (AKREAL on 2015-01-27)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.17"
>0.17
  (AKREAL on 2015-01-23)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.16"
>0.16
  (AKREAL on 2015-01-23)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.15"
>0.15
  (AKREAL on 2015-01-22)</option>
<option
  
  value="DETI/Proc-Daemon-0.14"
>0.14
  (DETI on 2011-06-03)</option>
<option
  
  value="DETI/Proc-Daemon-0.13"
>0.13
  (DETI on 2011-06-01)</option>
<option
  
  value="DETI/Proc-Daemon-0.12"
>0.12
  (DETI on 2011-05-24)</option>
<option
  
  value="DETI/Proc-Daemon-0.10"
>0.10
  (DETI on 2011-04-01)</option>
<option
  
  value="DETI/Proc-Daemon-0.09"
>0.09
  (DETI on 2011-03-15)</option>
<option
  
  value="DETI/Proc-Daemon-0.08"
>0.08
  (DETI on 2011-03-13)</option>
<option
  
  value="DETI/Proc-Daemon-0.07"
>0.07
  (DETI on 2011-02-17)</option>
<option
  
  value="DETI/Proc-Daemon-0.06"
>0.06
  (DETI on 2011-01-17)</option>
<option
  
  value="DETI/Proc-Daemon-0.05"
>0.05
  (DETI on 2010-10-28)</option>
<option
  
  value="DETI/Proc-Daemon-0.04"
>0.04
  (DETI on 2010-10-23)</option>
<option
  
  value="EHOOD/Proc-Daemon-0.03"
>0.03
  (EHOOD on 2003-06-19)</option>
<optgroup label="BackPAN">'
<option
  
  value="DETI/Proc-Daemon-0.11"
>0.11
  (DETI on 2011-05-23)</option>
<option
  
  value="EHOOD/Proc-Daemon-0.02"
>0.02
  (EHOOD on 1999-04-17)</option>
<option
  
  value="EHOOD/Proc-Daemon-0.01"
>0.01
  (EHOOD on 1998-01-27)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="https://metacpan.org/pod/POSIX" title="POSIX" class="ellipsis">POSIX</a></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/Proc::Daemon/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=Proc%3A%3ADaemon">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=Proc-Daemon">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/AKREAL/Proc-Daemon-0.23/view/lib/Proc/Daemon.pm">This version</a>
    </li>
    <li>
      <a href="./Proc::Daemon.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/MICHIELB"><img src="https://www.gravatar.com/avatar/c35b97da3835376f2d804b022121f962?d=identicon&amp;s=20" title="MICHIELB" alt="MICHIELB"></a>
<a class="display-all" href="https://metacpan.org/author/AYOUNG"><img src="https://www.gravatar.com/avatar/8d1e4946c288fbe87d1e0394f3e41b24?d=identicon&amp;s=20" title="AYOUNG" alt="AYOUNG"></a>
<a class="display-all" href="https://metacpan.org/author/HANNIBAL"><img src="https://www.gravatar.com/avatar/325c153e70a65543b9496e0ad7cdca29?d=identicon&amp;s=20" title="HANNIBAL" alt="HANNIBAL"></a>
<a class="display-all" href="https://metacpan.org/author/KARJALA"><img src="https://www.gravatar.com/avatar/9685932c4be47d9e6370f49230700c40?d=identicon&amp;s=20" title="KARJALA" alt="KARJALA"></a>
<a class="display-all" href="https://metacpan.org/author/ILUX"><img src="https://www.gravatar.com/avatar/1cd0eea5e6ca13346060bb9d2c1e286b?d=identicon&amp;s=20" title="ILUX" alt="ILUX"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/Proc-Daemon/plussers">11 PAUSE users</a>
</div>
<div>
    6 non-PAUSE users
</div>
</div>
    </li>
    <li>
<div id="metacpan_contributors">
  <div>
    <button class="btn-link"
      onclick="$(this).hide(); $('#metacpan_contributors ul').slideDown(); return false;"
    >and 2 contributors</button>
  </div>
  <ul style="display: none">
    <li class="contributor"
      data-contrib-email="earl@earlhood.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Earl Hood
    </li>
    <li class="contributor"
      data-cpan-author="DETI"
      data-contrib-email="deti@cpan.org"
    >
      <a href="https://metacpan.org/author/DETI" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/dd64a432a68295c9c4dcfcfaafe3e77e?d=identicon&amp;s=20" />
      Detlef Pilzecker
      </a>
    </li>
  </ul>
</div>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/AKREAL" class="author-name">Pavel Denisov</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Proc/Daemon.pm&#39;" class="">
<option
  selected
  value="AKREAL/Proc-Daemon-0.23"
>0.23
  (AKREAL on 2016-01-01)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.22"
>0.22
  (AKREAL on 2015-10-29)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.21"
>0.21
  (AKREAL on 2015-08-07)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.20"
>0.20
  (AKREAL on 2015-06-24)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.19"
>0.19
  (AKREAL on 2015-03-22)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.18"
>0.18
  (AKREAL on 2015-01-27)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.17"
>0.17
  (AKREAL on 2015-01-23)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.16"
>0.16
  (AKREAL on 2015-01-23)</option>
<option
  
  value="AKREAL/Proc-Daemon-0.15"
>0.15
  (AKREAL on 2015-01-22)</option>
<option
  
  value="DETI/Proc-Daemon-0.14"
>0.14
  (DETI on 2011-06-03)</option>
<option
  
  value="DETI/Proc-Daemon-0.13"
>0.13
  (DETI on 2011-06-01)</option>
<option
  
  value="DETI/Proc-Daemon-0.12"
>0.12
  (DETI on 2011-05-24)</option>
<option
  
  value="DETI/Proc-Daemon-0.10"
>0.10
  (DETI on 2011-04-01)</option>
<option
  
  value="DETI/Proc-Daemon-0.09"
>0.09
  (DETI on 2011-03-15)</option>
<option
  
  value="DETI/Proc-Daemon-0.08"
>0.08
  (DETI on 2011-03-13)</option>
<option
  
  value="DETI/Proc-Daemon-0.07"
>0.07
  (DETI on 2011-02-17)</option>
<option
  
  value="DETI/Proc-Daemon-0.06"
>0.06
  (DETI on 2011-01-17)</option>
<option
  
  value="DETI/Proc-Daemon-0.05"
>0.05
  (DETI on 2010-10-28)</option>
<option
  
  value="DETI/Proc-Daemon-0.04"
>0.04
  (DETI on 2010-10-23)</option>
<option
  
  value="EHOOD/Proc-Daemon-0.03"
>0.03
  (EHOOD on 2003-06-19)</option>
<optgroup label="BackPAN">'
<option
  
  value="DETI/Proc-Daemon-0.11"
>0.11
  (DETI on 2011-05-23)</option>
<option
  
  value="EHOOD/Proc-Daemon-0.02"
>0.02
  (EHOOD on 1999-04-17)</option>
<option
  
  value="EHOOD/Proc-Daemon-0.01"
>0.01
  (EHOOD on 1998-01-27)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/Proc-Daemon">Proc-Daemon-0.23</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage two &#10;
          • 32 direct dependents &#10;          • 50 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="15"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="Proc-Daemon-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="Proc-Daemon-0.23">
    <input type="hidden" name="author" value="AKREAL">
    <input type="hidden" name="distribution" value="Proc-Daemon">
    <button type="submit" class="favorite highlight"><span>17</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="./Proc::Daemon.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>17</span> ++</a>
</div>
   / <span>Proc::Daemon</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="./Proc::Daemon.html#NAME">NAME</a></li>
  <li><a href="./Proc::Daemon.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="./Proc::Daemon.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="./Proc::Daemon.html#CONSTRUCTOR">CONSTRUCTOR</a></li>
  <li><a href="./Proc::Daemon.html#METHODS">METHODS</a></li>
  <li><a href="./Proc::Daemon.html#OTHER-METHODS">OTHER METHODS</a></li>
  <li><a href="./Proc::Daemon.html#NOTES">NOTES</a></li>
  <li><a href="./Proc::Daemon.html#AUTHORS">AUTHORS</a></li>
  <li><a href="./Proc::Daemon.html#CREDITS">CREDITS</a></li>
  <li><a href="./Proc::Daemon.html#PREREQUISITES">PREREQUISITES</a></li>
  <li><a href="./Proc::Daemon.html#REPOSITORY">REPOSITORY</a></li>
  <li><a href="./Proc::Daemon.html#SEE-ALSO">SEE ALSO</a></li>
  <li><a href="./Proc::Daemon.html#COPYRIGHT">COPYRIGHT</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>Proc::Daemon - Run Perl program(s) as a daemon process.</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code>    use Proc::Daemon;

    $daemon = Proc::Daemon-&gt;new(
        work_dir =&gt; &#39;/my/daemon/directory&#39;,
        .....
    );

    $Kid_1_PID = $daemon-&gt;Init;

    unless ( $Kid_1_PID ) {
        # code executed only by the child ...
    }

    $Kid_2_PID = $daemon-&gt;Init( { 
                    work_dir     =&gt; &#39;/other/daemon/directory&#39;,
                    exec_command =&gt; &#39;perl /home/my_script.pl&#39;,
                 } );

    $pid = $daemon-&gt;Status( ... );

    $stopped = $daemon-&gt;Kill_Daemon( ... );</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>This module can be used by a Perl program to initialize itself as a daemon or to execute (<code>exec</code>) a system command as daemon. You can also check the status of the daemon (alive or dead) and you can kill the daemon.</p>

<p>A daemon is a process that runs in the background with no controlling terminal. Generally servers (like FTP, HTTP and SIP servers) run as daemon processes. Do not make the mistake to think that a daemon is a server. ;-)</p>

<p>Proc::Daemon does the following:</p>

<ol>

<li><p>The script forks a child.</p>

</li>
<li><p>The child changes the current working directory to the value of &#39;work_dir&#39;.</p>

</li>
<li><p>The child clears the file creation mask.</p>

</li>
<li><p>The child becomes a session leader, which detaches the program from the controlling terminal.</p>

</li>
<li><p>The child forks another child (the final daemon process). This prevents the potential of acquiring a controlling terminal at all and detaches the daemon completely from the first parent.</p>

</li>
<li><p>The second child closes all open file descriptors (unless you define <code>dont_close_fh</code> and/or <code>dont_close_fd</code>).</p>

</li>
<li><p>The second child opens STDIN, STDOUT and STDERR to the location defined in the constructor (<code>new</code>).</p>

</li>
<li><p>The second child returns to the calling script, or the program defined in &#39;exec_command&#39; is executed and the second child never returns.</p>

</li>
<li><p>The first child transfers the PID of the second child (daemon) to the parent. Additionally the PID of the daemon process can be written into a file if &#39;pid_file&#39; is defined. Then the first child exits.</p>

</li>
<li><p>If the parent script is looking for a return value, then the PID(s) of the child/ren will be returned. Otherwise the parent will exit.</p>

</li>
</ol>

<p>NOTE: Because of the second fork the daemon will not be a session-leader and therefore Signals will not be send to other members of his process group. If you need the functionality of a session-leader you may want to call POSIX::setsid() manually at your daemon.</p>

<p>INFO: Since <code>fork</code> is not performed the same way on Windows systems as on Linux, this module does not work with Windows. Patches appreciated!</p>

<h1 id="CONSTRUCTOR">CONSTRUCTOR</h1>

<dl>

<dt id="new-(-%ARGS-)"><a id="new"></a><a id="new----ARGS"></a>new ( %ARGS )</dt>
<dd>

<p>The constructor creates a new Proc::Daemon object based on the hash %ARGS. The following keys from %ARGS are used:</p>

<dl>

<dt id="work_dir">work_dir</dt>
<dd>

<p>Defines the path to the working directory of your daemon. Defaults to <code>/</code>.</p>

</dd>
<dt id="setuid">setuid</dt>
<dd>

<p>Sets the real user identifier (<code>$&lt;</code>) and the effective user identifier (<code>$&gt;</code>) for the daemon process using <code>POSIX::setuid( ... )</code>, in case you want to run your daemon under an other user than the parent. Obviously the first user must have the rights to switch to the new user otherwise it will stay the same. It is helpful to define the argument <code>setuid</code> if you start your script at boot time by init with the superuser, but wants the daemon to run under a normal user account.</p>

</dd>
<dt id="setgid">setgid</dt>
<dd>

<p>Sets the real group identifier (<code>$(</code>) and the effective group identifier (<code>$)</code>) for the daemon process using <code>POSXI::setgid( ... )</code>, just like <code>setuid</code>. As with <code>setuid</code>, the first user must have the rights to switch to the new group, otherwise the group id will not be changed.</p>

</dd>
<dt id="child_STDIN">child_STDIN</dt>
<dd>

<p>Defines the path to STDIN for your daemon. Defaults to <code>/dev/null</code>. Default Mode is &#39;&lt;&#39; (read). You can define other Mode the same way as you do using Perls <code>open</code> in a two-argument form.</p>

</dd>
<dt id="child_STDOUT">child_STDOUT</dt>
<dd>

<p>Defines the path where the output of your daemon will go. Defaults to <code>/dev/null</code>. Default Mode is &#39;+&gt;&#39; (write/read). You can define other Mode the same way as you do using Perls <code>open</code> in a two-argument form.</p>

</dd>
<dt id="child_STDERR">child_STDERR</dt>
<dd>

<p>Defines the path where the error output of your daemon will go. Defaults to <code>/dev/null</code>. Default Mode is &#39;+&gt;&#39; (write/read). You can define other Mode the same way as you do using Perls <code>open</code> in a two-argument form, see example below.</p>

</dd>
<dt id="dont_close_fh">dont_close_fh</dt>
<dd>

<p>If you define it, it must be an arrayref with file handles you want to preserve from the parent into the child (daemon). This may be the case if you have code below a <code>__DATA__</code> token in your script or module called by <code>use</code> or <code>require</code>.</p>

<pre><code>    dont_close_fh =&gt; [ &#39;main::DATA&#39;, &#39;PackageName::DATA&#39;, $my_filehandle, ... ],</code></pre>

<p>You can add any kind of file handle to the array (expression in single quotes or a scalar variable), including &#39;STDIN&#39;, &#39;STDOUT&#39; and &#39;STDERR&#39;. Logically the path settings from above (<code>child_STDIN</code>, ...) will be ignored in this case.</p>

<p>DISCLAIMER: Using this argument may not detach your daemon fully from the parent! Use it at your own risk.</p>

</dd>
<dt id="dont_close_fd">dont_close_fd</dt>
<dd>

<p>Same function and disclaimer as <code>dont_close_fh</code>, but instead of file handles you write the numeric file descriptors inside the arrayref.</p>

</dd>
<dt id="pid_file">pid_file</dt>
<dd>

<p>Defines the path to a file (owned by the parent user) where the PID of the daemon process will be stored. Defaults to <code>undef</code> (= write no file).</p>

</dd>
<dt id="file_umask">file_umask</dt>
<dd>

<p>Defines umask for <code>pid_file</code>, <code>child_STDIN</code>, <code>child_STDOUT</code> and <code>child_STDERR</code> files. Defaults to <code>066</code> (other users may not modify or read the files).</p>

</dd>
<dt id="exec_command">exec_command</dt>
<dd>

<p>Scalar or arrayref with system command(s) that will be executed by the daemon via Perls <code>exec PROGRAM_LIST</code>. In this case the child will never return to the parents process!</p>

</dd>
</dl>

<p>Example:</p>

<pre><code>    my $daemon = Proc::Daemon-&gt;new(
        work_dir     =&gt; &#39;/working/daemon/directory&#39;,
        child_STDOUT =&gt; &#39;/path/to/daemon/output.file&#39;,
        child_STDERR =&gt; &#39;+&gt;&gt;debug.txt&#39;,
        pid_file     =&gt; &#39;pid.txt&#39;,
        exec_command =&gt; &#39;perl /home/my_script.pl&#39;,
      # or:
      # exec_command =&gt; [ &#39;perl /home/my_script.pl&#39;, &#39;perl /home/my_other_script.pl&#39; ],
    );</code></pre>

<p>In this example:</p>

<ul>

<li><p>the PID of the daemon will be returned to <code>$daemon</code> in the parent process and a pid-file will be created at <code>/working/daemon/directory/pid.txt</code>.</p>

</li>
<li><p>STDOUT will be open with Mode &#39;+&gt;&#39; (write/read) to <code>/path/to/daemon/output.file</code> and STDERR will be open to <code>/working/daemon/directory/debug.txt</code> with Mode &#39;+&gt;&gt;&#39; (write/read opened for appending).</p>

</li>
<li><p>the script <code>/home/my_script.pl</code> will be executed by <code>perl</code> and run as daemon. Therefore the child process will never return to this parent script.</p>

</li>
</ul>

</dd>
</dl>

<h1 id="METHODS">METHODS</h1>

<dl>

<dt id="Init(-[-{-%ARGS-}-]-)"><a id="Init"></a><a id="Init-------ARGS"></a>Init( [ { %ARGS } ] )</dt>
<dd>

<p>Become a daemon.</p>

<p>If used for the first time after <code>new</code>, you call <code>Init</code> with the object reference to start the daemon.</p>

<pre><code>    $pid = $daemon-&gt;Init();</code></pre>

<p>If you want to use the object reference created by <code>new</code> for other daemons, you write <code>Init( { %ARGS } )</code>. %ARGS are the same as described in <code>new</code>. Notice that you shouldn&#39;t call <code>Init()</code> without argument in this case, or the next daemon will execute and/or write in the same files as the first daemon. To prevent this use at least an empty anonymous hash here.</p>

<pre><code>    $pid = $daemon-&gt;Init( {} );
    @pid = $daemon-&gt;Init( {
        work_dir     =&gt; &#39;/other/daemon/directory&#39;,
        exec_command =&gt; [ &#39;perl /home/my_second_script.pl&#39;, &#39;perl /home/my_third_script.pl&#39; ],
    } );</code></pre>

<p>If you don&#39;t need the Proc::Daemon object reference in your script, you can also use the method without object reference:</p>

<pre><code>    $pid = Proc::Daemon::Init();
    # or
    $pid = Proc::Daemon::Init( { %ARGS } );</code></pre>

<p><code>Init</code> returns the PID (scalar) of the daemon to the parent, or the PIDs (array) of the daemons created if <code>exec_command</code> has more then one program to execute. See examples above.</p>

<p><code>Init</code> returns 0 to the child (daemon).</p>

<p>If you call the <code>Init</code> method in the context without looking for a return value (void context) the parent process will <code>exit</code> here like in earlier versions:</p>

<pre><code>    Proc::Daemon::Init();</code></pre>

</dd>
<dt id="Status(-[-$ARG-]-)"><a id="Status"></a><a id="Status-----ARG"></a>Status( [ $ARG ] )</dt>
<dd>

<p>This function checks the status of the process (daemon). Returns the PID number (alive) or 0 (dead).</p>

<p>$ARG can be a string with:</p>

<ul>

<li><p><code>undef</code>, in this case it tries to get the PID to check out of the object reference settings.</p>

</li>
<li><p>a PID number to check.</p>

</li>
<li><p>the path to a file containing the PID to check.</p>

</li>
<li><p>the command line entry of the running program to check. This requires <a href="https://metacpan.org/pod/Proc::ProcessTable">Proc::ProcessTable</a> to be installed.</p>

</li>
</ul>

</dd>
<dt id="Kill_Daemon(-[-$ARG-[,-SIGNAL]-]-)"><a id="Kill_Daemon"></a><a id="Kill_Daemon-----ARG---SIGNAL"></a>Kill_Daemon( [ $ARG [, SIGNAL] ] )</dt>
<dd>

<p>This function kills the Daemon process. Returns the number of processes successfully killed (which mostly is not the same as the PID number), or 0 if the process wasn&#39;t found.</p>

<p>$ARG is the same as of <code>Status()</code>. SIGNAL is an optional signal name or number as required by Perls <code>kill</code> function and listed out by <code>kill -l</code> on your system. Default value is 9 (&#39;KILL&#39; = non-catchable, non-ignorable kill).</p>

</dd>
<dt id="Fork">Fork</dt>
<dd>

<p>Is like the Perl built-in <code>fork</code>, but it retries to fork over 30 seconds if necessary and if possible to fork at all. It returns the child PID to the parent process and 0 to the child process. If the fork is unsuccessful it <code>warn</code>s and returns <code>undef</code>.</p>

</dd>
</dl>

<h1 id="OTHER-METHODS"><a id="OTHER"></a>OTHER METHODS</h1>

<p>Proc::Daemon also defines some other functions. See source code for more details:</p>

<dl>

<dt id="OpenMax(-[-$NUMBER-]-)"><a id="OpenMax"></a><a id="OpenMax-----NUMBER"></a>OpenMax( [ $NUMBER ] )</dt>
<dd>

<p>Returns the maximum file descriptor number. If undetermined $NUMBER will be returned.</p>

</dd>
<dt id="adjust_settings">adjust_settings</dt>
<dd>

<p>Does some fixes/adjustments on the <code>new</code> settings together with <code>fix_filename</code>.</p>

</dd>
<dt id="fix_filename(-$KEYNAME-)"><a id="fix_filename"></a><a id="fix_filename---KEYNAME"></a>fix_filename( $KEYNAME )</dt>
<dd>

<p>Prevents double use of same filename in different processes.</p>

</dd>
<dt id="get_pid(-[-$STRING-]-)"><a id="get_pid"></a><a id="get_pid-----STRING"></a>get_pid( [ $STRING ] )</dt>
<dd>

<p>Returns the wanted PID if it can be found.</p>

</dd>
<dt id="get_pid_by_proc_table_attr(-$ATTR,-$MATCH-)"><a id="get_pid_by_proc_table_attr"></a><a id="get_pid_by_proc_table_attr---ATTR---MATCH"></a>get_pid_by_proc_table_attr( $ATTR, $MATCH )</dt>
<dd>

<p>Returns the wanted PID by looking into the process table, or <code>undef</code>. Requires the <code>Proc::ProcessTable</code> module to be installed.</p>

</dd>
</dl>

<h1 id="NOTES">NOTES</h1>

<p><code>Proc::Daemon::init</code> is still available for backwards capability.</p>

<p>Proc::Daemon is now taint safe (assuming it is not passed any tainted parameters).</p>

<h1 id="AUTHORS">AUTHORS</h1>

<p>Primary-maintainer and code writer until version 0.03:</p>

<ul>

<li><p>Earl Hood, earl@earlhood.com, http://www.earlhood.com/</p>

</li>
</ul>

<p>Co-maintainer and code writer since version 0.04 until version 0.14:</p>

<ul>

<li><p>Detlef Pilzecker, http://search.cpan.org/~deti/, http://www.secure-sip-server.net/</p>

</li>
</ul>

<p>Co-maintainer and code writer since version 0.15:</p>

<ul>

<li><p>Pavel Denisov, http://search.cpan.org/~akreal/</p>

</li>
</ul>

<h1 id="CREDITS">CREDITS</h1>

<p>Initial implementation of <code>Proc::Daemon</code> derived from the following sources:</p>

<ul>

<li><p>&quot;Advanced Programming in the UNIX Environment&quot; by W. Richard Stevens. Addison-Wesley, Copyright 1992.</p>

</li>
<li><p>&quot;UNIX Network Programming&quot;, Vol 1, by W. Richard Stevens. Prentice-Hall PTR, Copyright 1998.</p>

</li>
</ul>

<h1 id="PREREQUISITES">PREREQUISITES</h1>

<p>This module requires the <code>POSIX</code> module to be installed.</p>

<p>The <code>Proc::ProcessTable</code> module is not essentially required but it can be useful if it is installed (see above).</p>

<h1 id="REPOSITORY">REPOSITORY</h1>

<p><a href="https://github.com/akreal/Proc-Daemon">https://github.com/akreal/Proc-Daemon</a></p>

<h1 id="SEE-ALSO"><a id="SEE"></a>SEE ALSO</h1>

<p><a href="http://man.he.net/man1/perl">perl(1)</a>, <a href="https://metacpan.org/pod/POSIX">POSIX</a>, <a href="https://metacpan.org/pod/Proc::ProcessTable">Proc::ProcessTable</a></p>

<h1 id="COPYRIGHT">COPYRIGHT</h1>

<p>This module is Copyright (C) 1997-2015 by Earl Hood, Detlef Pilzecker and Pavel Denisov.</p>

<p>All Rights Reserved.</p>

<p>This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.</p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install Proc::Daemon, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm Proc::Daemon</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install Proc::Daemon</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="./Proc::Daemon.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
